<div class="comment-container">
  <textarea type="text" class="textarea"
            ng-if="filtered.length === 0"
            ng-model="row.noCommentYet"
            ng-focus="table.stopRefresh()"
            ng-blur="table.startRefresh(); table.createComment(row.noCommentYet, row.id)"> </textarea>

  <div class="comment" ng-class="{ active : $parent.replyToId === comment.id }"
       ng-repeat="comment in row.comments
        | filter:{ reason : table.notesCommentReason }
        | filter:{ resolvedStatus : false }
        as filtered
        track by $index">
    <hr>
    <textarea type="text" class="textarea"
              ng-model="comment.text"
              ng-change="table.updateComment(comment, row.id)"
              ng-focus="table.stopRefresh()"
              ng-blur="table.startRefresh(); comment.text === '' && table.deleteComment(comment, row.id)">
    </textarea>
    </div>
</div>
